package com.lxw.manage_cms.controller;

import com.lxw.api.cms.CmsConfigControllerApi;
import com.lxw.framework.domain.cms.CmsConfig;
import com.lxw.manage_cms.service.CmsConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cmsConfig")
public class CmsConfigController implements CmsConfigControllerApi {
    @Autowired
    CmsConfigService cmsConfigService;
    @Override
    @GetMapping("/fiandById/{id}")
    public CmsConfig fiandById(@PathVariable String id) {

        return cmsConfigService.fingById(id);
    }
}
